<?php
/**
 * Created by PhpStorm.
 * User: xiangpeng
 * Date: 2016/12/31
 * Time: 23:09
 */

namespace Common\Model;


class GoodsListsModel extends BaseModel
{
    //主键
    protected $pk = 'prid';
    //要操作那张表
    protected  $tableName = 'goodslist';
    //自动验证
    protected $_validate = [
        ['stocks','require','商品库存不能为空',1,3],
        ['pnumbers','require','商品的货号不能为空',1,3],
        ['grid','require','请填写规格和尺寸不能为空',1,3],
    ];

}